package org.yray.sip.utils;
import java.util.HashMap;
import java.util.Map;

public class IcspBeanHolder {

    private final static Map<Class,Object> beanCacheMap=new HashMap<>();

    public final static<T> T getBean(Class<T> tClass)
    {
       return (T)beanCacheMap.computeIfAbsent(tClass,(v)->SpringUtil.getBean(v));
    }
}
